import React from './core/React.js';

// const App = React.createElement('div', { id: 'app' }, 'hello - ', 'mini-react');

function Counter({ num }) {
    return <h1>计数器：{num}</h1>;
}

function CounterContainer() {
    return (
        <div>
            CounterContainer<Counter></Counter>
        </div>
    );
}

const App = (
    <div>
        Hello mini-react
        <Counter num={10}></Counter>
        <Counter num={20}></Counter>
        {/* <CounterContainer></CounterContainer> */}
    </div>
);

export default App;
